<?php 

$this->load->view('template/header');

$this->load->view($vista, $data);

$this->load->view('template/footer');